package com.example.administrator.myapplication.fragments;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.administrator.myapplication.LcOneActivity;
import com.example.administrator.myapplication.LcTwoActivity;
import com.example.administrator.myapplication.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class LcFragment extends Fragment {

    ImageView mIvtubiao7;
    TextView mTvqiandaizi;
    TextView mTvqiandaizi2;
    TextView mTvqiandaizi3;
    TextView mTvqiandaizi4;


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view =  inflater.inflate(R.layout.fragment_lc, container, false);
        mIvtubiao7 = view.findViewById(R.id.tubiao7);
        mTvqiandaizi = view.findViewById(R.id.qiandaizi);
        mTvqiandaizi2 = view.findViewById(R.id.qiandaizi2);
        mTvqiandaizi3 = view.findViewById(R.id.qiandaizi3);
        mTvqiandaizi4 = view.findViewById(R.id.qiandaizi4);
        return view;

    }

    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        mIvtubiao7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), LcOneActivity.class);
                startActivity(intent);
            }
        });

        mTvqiandaizi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), LcTwoActivity.class);
                startActivity(intent);
            }
        });
        mTvqiandaizi2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), LcTwoActivity.class);
                startActivity(intent);
            }
        });
        mTvqiandaizi3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), LcTwoActivity.class);
                startActivity(intent);
            }
        });
        mTvqiandaizi4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), LcTwoActivity.class);
                startActivity(intent);
            }
        });

    }




}
